home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Experimental BBS Explossion 3
/
Experimental BBS Explossion III.iso
/
gus
/
gus0025.zip
/
GUS206.INF
< prev
next >
Wrap
INI File
|
1993-05-19
|
43KB
|
1,210 lines
;;===========================================================================
;; Title: Gravis UltraSound Install
;; Version: 2.06
;; Date: 04/02/93
;;
;; Revision History
;; 03/25/93 - PLAYMIDI & PLAYFILE - Fixes problem with user manually
;; entering Frequency
;; 04/01/93 - Don't allow Install of Windows on a 286
;; 04/05/93 - Updated GravUtil from 08/92 to 10/92 (1.4B to 2.0)
;; 04/07/93 - Redid Windows Install to check for more things that could
;; screw it up. Including 286, Not enough files, prompt user
;; for Windows directory and more.
;; Check disk space required after we know what options the user
;; wants to install not before
;; 04/09/93 - Note to user that STACKER, Double Space etc... won't return
;; correct hard disk space
;; More verification before attempting Windows setup. Including
;; FILES= at least 20
;; Don't worry about the users BUFFERS settings. Just worry about
;; FILES
;; 04/22/93 - Bunch more stuff <grin>
;; 04/27/93 - Let Everyone Here Try the New Install
;; - If FULL Install not properly install SETGUS stuff
;; - ReArranged Main Menu - Less clutter
;; 04/29/93 - Ok, tons of feedback.
;; - Fixed asking user twice for directory when full install
;; 05/05/93 - Added opening screen
;; 05/07/93 - If a user is upgrading from an older version of the Windows
;; drivers tell them that they should remove these drivers before
;; proceeding. Otherwise, they'll get an INCORRECT PATCH VERSION
;; error message during there Windows install
;; 05/12/93 - Tidy up the GRAVIS opening screen. Gee's, trying to get
;; something to look good strictly with extended ASCII is a PAIN!
;; - Change the Advanced Install to display various msgs if the user
;; trys to install things that may not work correctly
;; 05/13/93 - Make Install Smart Enough to figure out if this is the full
;; (PowerChords/MidiSoft) or the partial one
;; 05/14/93 - If User has Ultrasnd enviro vars at the end of his/her autoexec
;; bat and this is a first time install move those lines to the
;; top of his/her autoexec.bat
;; 05/19/93 - VERY Last Minute Change. Remove Jungly Demo. As I'm typing
;; this the truck is waiting at the door to take this set of disks
;; to the disk duplication place in the states.
;;
;;===========================================================================
;; -----------------
;; What Variables Are Used For
;; -----------------
;; [Dir1] Store Windows Directory
;; [Dir2] Install From Drive Letter
;; [Dir3] Where README is Located
;; [Dir4] <UNUSED>
;; [Dir5] <UNUSED>
;; [Dir6] <UNUSED>
;; [Dir7] <UNUSED>
;; [Dir8] <UNUSED>
;; [Dir9] <UNUSED>
;; [Number1] Min. number of file handles
;; [Number2] <UNUSED>
;; [Number3] Actual byte size of users install
;; [Number4] Users actual file handles
;; [Number5] <UNUSED>
;; [Number6] <UNUSED>
;; [Number7] Used to move GUS Enviro Vars.
;; [Number8] Used as temp storage for Enviro Vars.
;; [Number9] <UNUSED>
;; [String1] Filename to Restore
;; [String2] UltraSND Environment Variable
;; [String3] UltraDIR Environment Variable
;; [String4] GUSMOD Environment Variable
;; [String5] Get SYSTEM.INI SHELL= Statement
;; [String6] Used to Determine DIR1
;; [String7] Verify Environment Variables
;; [String8] Temp string used to move enviros
;; [String9] <UNUSED>
;; [YesorNo1] No UltraSound Setup Software Installed. Install It?
;; [YesorNo2] Disable Function Keys ON/OFF
;; [YesorNo3] Modify FILES= for Windows Setup
;; [YesorNo4] Directory Exist. Overwrite files?
;; [YesorNo5] Flag - First FULL Install
;; [YesorNo6] Full Version or Partial (with or without MidiSoft/Power Chords)
;; [YesorNo7] <UNUSED>
;; [YesorNo8] <UNUSED>
;; [YesorNo9] <UNUSED>
;; [Point1] <UNUSED>
;; [Point2] Exit
;; [Point3] Check Windows directory
;; [Point4] Determine Install Directory
;; [Point5] Skip Windows Checking
;; [Point6] Skip Single File Install
;; [Point7] Patch for InstallIT
;; [Point8] Patch for InstallIT
;; [Point9] <UNUSED>
;;======================================
;; Author: John Smith
;; Date: 04/06/93
;; Purpose: Define Variables
;;======================================
DefineVariables
Logical [GUSSetup] := NoCharacter ;; Do we need to run GUS Setup?
Logical [WinSetup] := NoCharacter ;; Do we need to run Windows Setup?
Logical [InstSBOS] := NoCharacter
Logical [InstDEMO] := NoCharacter
Logical [InstUTIL] := NoCharacter
Logical [InstWIN] := NoCharacter
Logical [InstALL] := NoCharacter
Logical [InstGUSMOD] := NoCharacter
Logical [InstPAT] := NoCharacter
Logical [SETGUS] := NoCharacter ;; Did we run SETGUS?
Logical [Flag1] := NoCharacter ;; Flag if Second pass on Install ALL
;; so that we don't ask the user for
;; the directory twice
SDF Text [MinimumOSVersion]
SDF Number [MinimumSystemMemoryRequiredPresent]
SDF Logical [AllowCGA]
SDF Logical [AllowMDA]
SDF Logical [Allow808x]
SDF Logical [Allow80286]
SDF Text [NetWorkInstallation]
Logical [InsufficientSystem] := NoCharacter
Logical [CompatibilityNoticeGiven] := NoCharacter
Text [DisplayAdapterSummary]
Text [CPUTypeSummary]
Text [NetworkActive]
Text [MathCoprocessorStatus]
Text [InstallationDriveSummary]
Text [OSVersionSummary]
Text [SystemMemorySummary]
Text [EMSPresent]
EndDefineVariables
[Dir1] := [WindowsDirectory]
[Dir2] := [InstallFromDrive]:
[Dir3] := InstalitDirectory
[Number1] := 20 ;; Min. Files
Do ModifyStuff ;; TEST!!!****!!!*!*!*!*!
Do DetermineULTRADIR
If FileIsInLibrary SESSION.EXE ;; Check to see if Partial
[YesorNo6] := YesCharacter ;; or full version (with
Else ;; or without Midi/Power)
[YesorNo6] := NoCharacter
EndIf
;;======================================
;; Author: Forte
;; Date: 03/xx/93
;; Purpose: What to Show user if they have a bad disk
;;======================================
SetSupportInformation
You may have a corrupted disk. Please try installing again. If
unsuccessful, please call Advanced Gravis Tech Support for a
replacement disk or download the disk from our BBS.
.cTechnical Support (9am-4pm PST)......1-604-431-1807
.cBulletin Board System (V32bis N81)...1-604-431-5927
EndSetSupportInformation
;;======================================
;; Author: John Smith
;; Date: 04/06/93
;; Purpose: Show Title Screen
;;======================================
Do OpeningScreen ;; Call the Opening Screen
ClearScreen
SetBackgroundCharTo B0 ;; Set Bkgrd to Blue/White
ChangeDirectoryTo [Dir2] ;; Goto Install From Drive
LetButton <F1> Do ShowHelp
LetButton <F2> Do GetReadme
LetButton <F3> Do ShowSystemSummary
:MAIN
[YesorNo5] := NoCharacter ;; First FULL Install?
[YesorNo2] := YesCharacter ;; Enable Function Keys
[GUSSetup] := NoCharacter ;; Init All Vars to NO
[WinSetup] := NoCharacter
[SETGUS] := NoCharacter
[InstSBOS] := NoCharacter
[InstDEMO] := NoCharacter
[InstUTIL] := NoCharacter
[InstWIN] := NoCharacter
[InstALL] := NoCharacter
[InstGUSMOD] := NoCharacter
[InstPAT] := NoCharacter
Do TitleScreen
QueAllFiles ;; Determine Total Size
[Number3] := QueSize ;; of Install. Handy cause
UnQueAllFiles ;; independate of version
TextBox WhiteOnBlue @xy(Center,3)
A complete install requires [Number3] bytes of hard disk space
NOTE: Programs such as STACKER, and DOUBLE SPACE may not
.caccurately report the true drive space remaining.
EndTextBox
GetMenuChoice WhiteOnLightBlue @xy(Center,9) Highlight 1 UseHeader "Installation Main Menu"
Install All UltraSound Software
Advanced Custom Install
; Selectively install individual modules or files
Exit
; Exit the Install and return to DOS
EndGetMenuChoice
[YesorNo2] := NoCharacter ;; Hide Function Keys
InCase Choice is
=1:
ClearScreen
Do TitleScreen
[InstALL] := YesCharacter
[GUSSetup] := YesCharacter
[String2] := EnvironmentStringFor ULTRASND
If [String2] = BlankString ;; Does it Exist?
[YesorNo5] := YesCharacter ;; Yes - First FULL Install
Dialog PressAnyKey WhiteOnCyan
This appears to be the first time you have installed the
UltraSound card in this computer. Before we proceed to copy
all [Number3] bytes to your hard disk we will verify that your
UltraSound card is operating correctly. To do this we will run
the UltraSound setup and diagnostics program first. Once this
is complete we will proceed with the remainder of the install.
EndDialog
Do CheckGUSSetup
PopUp We will now proceed with the remainder of your install.
EndIf
UnQueAllFiles
QueAllFiles
[WinSetup] := YesCharacter
[InstSBOS] := YesCharacter
[InstDEMO] := YesCharacter
[InstUTIL] := YesCharacter
[InstWIN] := YesCharacter
[InstGUSMOD] := YesCharacter
[InstPAT] := YesCharacter
Goto [Point7]
=2: Do AdvancedInstall
Goto MAIN
=3: UnQueAllFiles
Do Bye
EndInCase
[Point7] ;; InstallIT has a bug in it.
;; This is a patch to fix it.
;; InstalIt doesn't properly
;; handle the above case statement
;; in all circumstances and sometimes
;; executes the instructions in the
;; next CASE. Thereby screwing up
;; the Que. WHich is why I
;; do an UNQUEALL and a GOTO POINT7
ClearScreen
Do TitleScreen
If [WinSetup] = YesCharacter
Do CheckWindows ;; Check if Auto Windows Install OK
EndIf
Do CopyQueFiles ;; Copy Requested File Groups
Do ModifyStuff
If [InstALL] = NoCharacter
Do CheckGUSSetup
EndIf
Do CheckWinSetup
If [InstALL] = YesCharacter
SetBackgroundCharTo 2
Beep
Dialog PressAnyKey WhiteOnBlue UseHeader "Thank You for Choosing UltraSound" 60
This completes your installation process.
You may wish to try the following demos after this install:
.l MODDEMO - 4 track digital music using UltraMOD
.l GMODDEMO - Same as MODDEMO except using GUS MOD by Renaissance
.l MIDIDEMO - General MIDI Demo
.l MIDI1MB - MIDI Demo requiring 1Mb of DRAM on GUS for proper playback
.l FLIDEMO - Sample of ULTRAFLI. A FLI and SND player
.c********** WE WILL NOW REBOOT YOUR COMPUTER **********
EndDialog
ChangeDirectoryTo [Dir3] ;; Find to Installed Directory
DosCommand Reboot.com
EndIf
Goto MAIN ;; Goto Main Menu
;;===========================================================================
;;
;; Start of Procedures
;;
;;===========================================================================
;;======================================
;; Author: John Smith
;; Date: 04/09/93
;; Purpose: Do UltraSound SETUP
;;======================================
Procedure CheckGUSSetup
If [GUSSetup] = YesCharacter
If FileExists [String3]\SETGUS.EXE
Dialog WhiteOnRed
We will now run your UltraSound setup. You must
run this program to insure a proper installation.
EndDialog
;; Change to installation directory and Run UltraSound Setup Program
ChangeDirectoryTo [String3]
Run SetGUS -i Swapout NoPrompt
Else
If [InstALL] = NoCharacter
Dialog [YesOrNo1] WhiteOnRed @xy(Center,Center)
UltraSound install was unable to locate your UltraSound
setup files. Would you like us to re-install them?
EndDialog
Else
[YesOrNo1] := YesCharacter
EndIf
If [YesOrNo1] = Y
[SETGUS] := YesCharacter ;; Flag that this is a SETGUS Install
QueFileGroup 1 ;; Copy files and determine where to install
Do CopyQueFiles ;; Now that we have copied SETGUS we shouldn't ask
[Flag1] := YesCharacter ;; the user where to install the stuff again
Do CheckGUSSetup
EndIf
EndIf
EndIf
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/07/93
;; Purpose: Do Actuall Auto Windows Setup if Necessary
;;======================================
Procedure CheckWinSetup
If [WinSetup] = YesCharacter
If XMSMemoryAvailable <> 0
If [Dir1] <> BlankString
PopUp UltraSound Install will now proceed with Windows Setup
;;Perform the windows setup installation if user selected it
If FileExists [Dir1]\ULTRASND.DRV
CopyFiles from [Dir3]\WINDOWS to [Dir1] Quietly
ULTRASND.DRV
EndCopyFiles
EndIf
If FileExists [Dir1]\ULTMPORT.DRV
CopyFiles from [Dir3]\WINDOWS to [Dir1] Quietly
ULTMPORT.DRV
EndCopyFiles
EndIf
If FileExists [Dir1]\GRVSULTR.386
CopyFiles from [Dir3]\WINDOWS to [Dir1] Quietly
GRVSULTR.386
EndCopyFiles
EndIf
If FileExists [Dir1]\SYSTEM\ULTRASND.DRV
CopyFiles from [Dir3]\WINDOWS to [Dir1]\SYSTEM Quietly
ULTRASND.DRV
EndCopyFiles
EndIf
If FileExists [Dir1]\SYSTEM\ULTMPORT.DRV
CopyFiles from [Dir3]\WINDOWS to [Dir1]\SYSTEM Quietly
ULTMPORT.DRV
EndCopyFiles
EndIf
If FileExists [Dir1]\SYSTEM\GRVSULTR.386
CopyFiles from [Dir3]\WINDOWS to [Dir1]\SYSTEM Quietly
GRVSULTR.386
EndCopyFiles
EndIf
ChangeDirectoryTo [Dir3]
Run [Dir3]\WINSETUP.EXE Swapout NoPrompt
EndIf
EndIf
ChangeDirectoryTo [Dir3]
DeleteFiles from [BootDrive]:\ISFYZQVO.TWJ Quietly
*.*
EndDeleteFiles
DeleteDirectory [BootDrive]:\ISFYZQVO.TWJ Quietly
EndIf
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/07/93
;; Purpose: Check to see if we can do a Windows Auto Install
;;======================================
Procedure CheckWindows
;;-----------------
;; Double Check Windows Setup
;;-----------------
[Point3]
;; -----------------
;; If We Couldn't Find the Users Windows Prompt Them
;; -----------------
If [Dir1] = Blankstring
Beep
Dialog [String6] WhiteOnRed @xy(Center,Center) UseHeader "No Microsoft Windows Found" 60
UltraSound install could not find your Microsoft Windows
directory. Please enter in the full path, including drive
letter of the Windows directory which contains WIN.INI.
Press return to skip the Windows install at this time.
EndDialog
[Dir1] := [String6]
If [Dir1] = Blankstring
PopUp Skipping automated Windows install.
[WinSetup] := NoCharacter
Goto [Point5]
EndIf
If FileExists [Dir1]\WIN.INI
Else
PopUp Unable to locate WIN.INI in [Dir1]. Please try again.
[Dir1] := [WindowsDirectory]
EndIf
Goto [Point3]
EndIf
;; -----------------
;; Can't Run Windows in Enhanced Mode without Memory Manager
;; -----------------
If XMSMemoryAvailable = 0
Beep
Dialog WhiteOnRed @xy(Center,Center) UseHeader "No Memory Manager Found"
UltraSound install could not find your memory manager.
A memory manager (i.e. HIMEM.SYS) is required for the Windows
installation. Your UltraSound Windows installation can not be
completed until you install a memory manager in your CONFIG.SYS.
You may refer to your DOS or Windows manual on how to accomplish
this. UltraSound install will continue to copy the necessary
files to your hard drive but will not run the Windows install.
To run the Windows install at a later date simply type WINSETUP
from your UltraSound directory.
EndDialog
[WinSetup] := NoCharacter
EndIf
;; -----------------
;; Can't Run Windows in Enhanced Mode without a 386SX
;; -----------------
If 80286
Beep
Dialog WhiteOnRed
The UltraSound Microsoft Windows drivers will only work in
386 Enhanced mode. This mode is not available on 286 based
computers. We will skip your Windows install.
EndDialog
[WinSetup] := NoCharacter
[InstWIN] := NoCharacter
Goto [Point5]
EndIf
;; -----------------
;; Can't Run Windows Install if FILES are less than 20
;; -----------------
NoSysFileConfirmation
ExamineTextFile [BootDrive]:\CONFIG.SYS
[Number4] := SettingFor FILES
ForgetTextFile
If [Number4] < [Number1]
Dialog [YesOrNo3] WhiteOnRed @xy(Center,Center)
Your computer does not have enough file handles (FILES) for
the Windows installation. The minimum required is 20. Would you
like us to make the following change for you in your CONFIG.SYS?
.cFILES = 20
EndDialog
If [YesOrNo3] = Y
ModifyConfigSys Quietly
SetFilesToAtLeast [Number1]
EndModifyConfigSys
Dialog PressAnyKey WhiteOnRed @xy(Center,Center)
Modifications complete. For these changes to take
affect you will need to reboot your computer. If
you would like to continue without the automated
Windows install and do it later simply press any
key to continue. Otherwise, reboot your computer
now and restart the installation.
EndDialog
[WinSetup] := NoCharacter
Else
Dialog PressAnyKey WhiteOnRed @xy(Center,Center)
UltraSound install will continue to copy the necessary
files to your hard drive but will not run the Windows install.
To run the Windows install at a later date simply add the
following line to your CONFIG.SYS and then select WINDOWS
SETUP in the UltraSound install.
.cFILES = 20
EndDialog
[WinSetup] := NoCharacter
EndIf
EndIf
;; -----------------
;; Make Sure the user isn't Running a Windows Shell other than PROGMAN.EXE
;; -----------------
ExamineTextFile [Dir1]\SYSTEM.INI
[String5] := LineWith (SHELL,=,)
ForgetTextFile
If [String5] = shell=PROGMAN.EXE
Else
Beep
Dialog WhiteOnRed @xy(Center,Center) UseHeader "Windows Shell Detected"
UltraSound install detected a shell program other than PROGRAM
MANAGER in your Windows installation. This MAY cause problems
during the automated Windows install. If you expierence problems
with this simply replace the line in your SYSTEM.INI file that
says "[String5]" with "shell=PROGMAN.EXE". You may run the
automated Windows install at a later date by simply typing
WINSETUP from your UltraSound directory, or read the README file
on how to manually install the necessary drivers.
EndDialog
EndIf
[Point5]
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/07/93
;; Purpose: Determine Where to Copy Files then do It
;;======================================
Procedure CopyQueFiles
;;-----------------
;; Now that we know what we are to copy, lets figure out where to put it all
;;-----------------
[Number3] := QueSize ;; How Much to Copy?
If [Number3] > 0
If [SETGUS] = YesCharacter ;; If the User Installs ALL Software
If [InstALL] = YesCharacter ;; but we first have to determine where
QueAllFiles ;; they want to install ALL the software
[Number3] := QueSize ;; Only have install it prompt them
EndIf ;; once for where they want to install
;; the stuff.
Do DetermineWhere
UnQueAllFiles
QueFileGroup 1
[Number3] := QueSize
[SETGUS] := NoCharacter
Else
If [Flag1] = NoCharacter ;; Don't determine install where on the
Do DetermineWhere ;; second pass for install all
EndIf
EndIf
SetReplacementInquiry off
;;-----------------
;; Copy README Stuff if Not already there
;;-----------------
If FileExists [InstallationDirectory]\README
If [YesorNo5] = YesCharacter
CopyFiles From [InstallFromDrive]:\ To [InstallationDirectory] Quietly
GV.EXE
README
README.BAT
EndCopyFiles
EndIf
Else
CopyFiles From [InstallFromDrive]:\ To [InstallationDirectory] Quietly
GV.EXE
README
README.BAT
EndCopyFiles
EndIf
[Dir3] := [InstallationDirectory]
;;-----------------
;; Copy QUED Files
;;-----------------
GetQuedFiles
Do TitleScreen
EndIf
If [InstWIN] = YesCharacter
CopyFiles From [InstallationDirectory]\WINDOWS To [InstallationDirectory] Quietly
ULTRASND.INI
EndCopyFiles
EndIf
;;-----------------
;; If DOS5+ then Load SBOS Hi
;;-----------------
If [InstSBOS] = YesCharacter
If OSVersion < 5.0
CopyFiles From [InstallationDirectory]\SBOS To [InstallationDirectory] Quietly
LOADSBOS.EXE
SBOSDRV.EXE
SBOSLOW.BAT as SBOS.BAT
EndCopyFiles
Else
CopyFiles From [InstallationDirectory]\SBOS To [InstallationDirectory] Quietly
LOADSBOS.EXE
SBOSDRV.EXE
SBOSHI.BAT as SBOS.BAT
EndCopyFiles
EndIf
DeleteFiles from [InstallationDirectory]\SBOS Quietly
SBOSHI.BAT
SBOSLOW.BAT
EndDeleteFiles
EndIf
[Flag1] := NoCharacter
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/09/93
;; Purpose: Figure Out Destination
;;======================================
Procedure DetermineWhere
[String7] := EnvironmentStringFor ULTRADIR
If [String7] = BlankString ;; Does it Exist?
DetermineInstallationDrive [Number3] RequireFixed ConfirmRAM AllowNetwork
EndIf
ClearScreen
Do TitleScreen
[String7] := EnvironmentStringFor ULTRADIR
If [String7] = BlankString ;; Does it Exist?
TextBox WhiteOnBlue @xy(Center,19)
NOTE: The default directory is recommended so
that future upgrades are easier to perform.
EndTextBox
Else
TextBox WhiteOnBlue @xy(Center,19)
NOTE: It appears that you are upgrading from a previous version of
the UltraSound software. It is recommended that you install this
upgrade over top of your older software.
EndTextBox
EndIf
DO DetermineULTRADIR
[Point4]
SetBottomLineAttrTo YellowOnRed
SetBottomLineTo " Press RETURN to Accept and Proceed with Installation "
DetermineInstallationDirectory [String3] [Number3] NoCreate
[String3] := [InstallationDirectory]
ClearScreen
DO TitleScreen
If [YesorNo5] = NoCharacter
;; If directory exists inform user files will be overwritten
If DirectoryExists [InstallationDirectory]
Dialog [YesOrNo4] WhiteOnRed @xy(Center,Center)
This directory already exists. If you continue files may
be overwritten. Would you like to continue?
EndDialog
If [YesOrNo4] = N
GoTo [Point4]
EndIf
EndIf
EndIf
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/07/93
;; Purpose: Restore a Single File
;;======================================
Procedure GetUserFile
Dialog [String1] YellowOnRed @xy(5,7) 12
Which file(s) do you wish to restore? (Wild Cards are accepted)
EndDialog
If [String1] = BlankString
Goto [Point6]
Endif
If [String1] Contains \
PopUp Please enter the file name with no path.
Goto [Point6]
EndIf
If FileIsInLibrary [String1]
else
PopUp That file name is not available. Please try again.
Goto [Point6]
EndIf
QueFiles
[String1]
EndQueFiles
[Number3] := QueSize
Do DetermineWhere
GetQuedFiles
[Point6]
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/09/93
;; Purpose: What to Show User if they Select HELP
;;======================================
Procedure ShowHelp
If [YesorNo2] = YesCharacter
Dialog PressAnyKey YellowOnRed @xy(Center,Center)
Should you experience any difficulties with the UltraSound
Install you may contact Gravis customer service at:
Advanced Gravis
3750 North Fraser Way, #101
Burnaby, BC, Canada
V5J 5E9
Technical Support (9am-4pm PST)......1-604-431-1807
Bulletin Board System (V32bis N81)...1-604-431-5927
Fax..................................1-604-451-9358
NOTE: These calls are to Canada!! We strongly recommend
you read the README file and the MANUAL before calling
to save time and money.
EndDialog
EndIf
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/07/93
;; Purpose: View README file
;;======================================
Procedure GetReadme ;; To read the Readme file for latest updated info
If [YesorNo2] = YesCharacter
[Dir6] := CurrentDirectory
ChangeDirectoryTo [Dir3]
Run GV README NoPrompt
ChangeDirectoryTo [Dir6]
EndIf
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/09/93
;; Purpose: Display Exit Message
;;======================================
Procedure Bye
SoLong
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/09/93
;; Purpose: Determine UltraDIR Location
;;======================================
Procedure DetermineULTRADIR
[String3] := EnvironmentStringFor ULTRADIR
If [String3] = BlankString ;; Does it Exist?
[String3] := InstallationDrive:\ULTRASND
EndIf
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/07/93
;; Purpose: Show User System Summary
;;======================================
Procedure ShowSystemSummary ;; System summary - change with care.
If [YesorNo2] = YesCharacter
DO PrepareSystemReport
Dialog PressAnyKey WhiteOnBLue @xy(Center,Center)
.cSystem Summary
.c[String8] ;; Notes whether any incompatibilities were found
Operating System: [OSVersionSummary]
CPU Type: [CPUTypeSummary]
Display Adapter: [DisplayAdapterSummary]
Math Coprocessor: [MathCoprocessorStatus]
Network: [NetworkActive]
Main Memory Present: [SystemMemorySummary]
XMS Memory Present: ExtendedMemoryPresentK
XMS Memory Available: XMSMemoryAvailableK
EMS Version: [EMSPresent]
Customer Support Number 1-604-431-1807
EndDialog
EndIf
EndProcedure
;;======================================
;; Author: Forte
;; Date: 03/xx/93
;; Purpose: Display System Summary to User
;; Revision: Edit Display Layout - JRS
;;======================================
Procedure PrepareSystemReport
[InsufficientSystem] := NoCharacter
If OSVersion < [MinimumOSVersion]
[OSVersionSummary] := OSVersion (Requires [MinimumOSVersion])
[InsufficientSystem] := YesCharacter
else
[OSVersionSummary] := OSVersion
EndIf
If MainMemory < [MinimumSystemMemoryRequiredPresent]
[SystemMemorySummary] := MainMemoryK (Requires [MinimumSystemMemoryRequiredPresent]K)
[InsufficientSystem] := YesCharacter
else
[SystemMemorySummary] := MainMemoryK
EndIf
If MathCoprocessorPresent
[MathCoprocessorStatus] := Present
Else
[MathCoprocessorStatus] := Not Present
EndIf
If EMSVersion = 0
[EMSPresent] := No EMS Present
Else
[EMSPresent] := EMSVersion
EndIf
;;-----------------
;; Determine CPU Type
;;-----------------
If 808X
If [Allow808X] = YesCharacter
[CPUTypeSummary] := 808x
else
[CPUTypeSummary] := 808x (Not compatible with [ProductName])
[InsufficientSystem] := YesCharacter
EndIf
EndIf
If 80286
[CPUTypeSummary] := 80286
EndIf
If 80386
[CPUTypeSummary] := 80386
EndIf
If 80486
[CPUTypeSummary] := 80486
EndIf
If [CPUTypeSummary] = BlankString
[CPUTypeSummary] := Unknown
EndIf
If MicroChannel
[CPUTypeSummary] := [CPUTypeSummary] (MicroChannel)
else
[CPUTypeSummary] := [CPUTypeSummary] (ISA/EISA)
EndIf
;;-----------------
;; Determine Video Type
;;-----------------
If CGA
If [AllowCGA] = YesCharacter
[DisplayAdapterSummary] := CGA
else
[DisplayAdapterSummary] := CGA (Not compatible with [ProductName])
[InsufficientSystem] := YesCharacter
EndIf
EndIf
If MDA
If [AllowMDA] = YesCharacter
[DisplayAdapterSummary] := MDA
else
[DisplayAdapterSummary] := MDA (Not compatible with [ProductName])
[InsufficientSystem] := YesCharacter
EndIf
EndIf
If EGA
[DisplayAdapterSummary] := EGA
EndIf
If VGA
[DisplayAdapterSummary] := VGA
EndIf
If HGC
[DisplayAdapterSummary] := HGC
EndIf
If HGCPlus
[DisplayAdapterSummary] := HGC Plus
EndIf
;;-----------------
;; Determine Other Aspects
;;-----------------
If Network
[NetworkActive] := Network Active
else
[NetworkActive] := No Network Active
EndIf
If NovellLoaded
[NetworkActive] := Novell [NetworkActive]
EndIf
If [InstallationDirectory] <> BlankString
[InstallationDriveSummary] := InstallationDrive (FreeSpaceOnDrive InstallationDrive bytes free)
else
[InstallationDriveSummary] := (Not Selected)
EndIf
If [InsufficientSystem] = YesCharacter
[String8] := Incompatibilities with [ProductName] Detected
EndIf
[CompatibilityNoticeGiven] := YesCharacter
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/07/93
;; Purpose: Do Advanced User Install
;;======================================
Procedure AdvancedInstall
[String2] := EnvironmentStringFor ULTRASND
If [String2] = BlankString ;; Does it Exist?
Dialog PressAnyKey WhiteOnCyan
It appears that you have not run the UltraSound setup
program, SETGUS. For your card to operate correctly you
must run this first. Select "RUN ULTRASOUND SETUP" from
the Advanced Install to cofigure your card. If you do
not the UltraSound software may not operate correctly.
EndDialog
EndIf
ClearScreen
:ADVANCED
[GUSSetup] := NoCharacter ;; Init All Vars to NO
[WinSetup] := NoCharacter
[InstSBOS] := NoCharacter
[InstDEMO] := NoCharacter
[InstUTIL] := NoCharacter
[InstWIN] := NoCharacter
[InstALL] := NoCharacter
[InstGUSMOD] := NoCharacter
[InstPAT] := NoCharacter
[YesorNo5] := NoCharacter
Do TitleScreen
TextBox WhiteOnBlue @xy(Center,3)
Do not forget to mail in your UltraSound registration card.
EndTextBox
GetMenuChoice WhiteOnLightBlue @xy(Center,9) Highlight 1 UseHeader "Advanced Installation Menu"
Restore File(s)
; Restore a single or group of files
Run UltraSound Setup
; Configure and diagnose UltraSound card.
Install General MIDI Patch Set
; General MIDI Patch Library
Install UltraSound Utilities and Demos
; Utilities and Demos
Install SBOS
; Sound Blaster and Adlib Emulator
Return to Main Menu
EndGetMenuChoice
InCase Choice is
=1: Do GetUserFile
=2: [GUSSetup] := YesCharacter
=3: UnQueAllFiles
QueFileGroup 5
[InstPAT] := YesCharacter
Goto [Point8]
=4: UnQueAllFiles
If FileExists [InstallationDirectory]\ULTRASND.INI
Dialog PressAnyKey WhiteOnCyan
You must install the General MIDI Patch library
for the MIDI demos to operate correctly. Select
"INSTALL GENERAL MIDI PATCH SET" to install the patchs.
EndDialog
EndIf
[InstDEMO] := NoCharacter
[InstUTIL] := NoCharacter
[InstGUSMOD] := NoCharacter
QueFileGroup 1 2 3 6
Goto [Point8]
=5: UnQueAllFiles
If [String2] = BlankString ;; Does it Exist?
Dialog PressAnyKey WhiteOnCyan
You must run the UltraSound setup program,
SETGUS for SBOS to operate correctly. Select
"RUN ULTRASOUND SETUP" to run SETGUS.
EndDialog
EndIf
[InstSBOS] := NoCharacter
QueFileGroup 3
Goto [Point8]
=6: Exit
EndInCase
[Point8]
ClearScreen
Do TitleScreen
If [GUSSetup] = YesCharacter
Do CheckGUSSetup ;; Just run GUS Setup
Else
Do CopyQueFiles
EndIf
Goto ADVANCED
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/27/93
;; Purpose: Modify Autoexec Stuff
;;======================================
Procedure ModifyStuff
;;-----------------
;; Run SETUP, WINGUS and Modify CONFIG.SYS & AUTOEXEC.BAT
;;-----------------
NoSysFileConfirmation
;;Add Path to AutoExec if Necessary
If [InstGUSMOD] = YesCharacter
ExamineTextFile [BootDrive]:\AUTOEXEC.BAT
[String4] := LineWith (SET,GUSMOD,)
ForgetTextFile
If [String4] = BlankString ;; Does it Exist?
[String4] := [InstallationDirectory]\MOD ;; If Not Create It
ModifyAutoexecBat Quietly
AddPathComponent [InstallationDirectory] at Beginning
InsertAtLine 2 "SET GUSMOD=[String4]"
EndModifyAutoexecBat
Else ;; If It Did. Don't add another
ModifyAutoexecBat Quietly
AddPathComponent [InstallationDirectory] at Beginning
EndModifyAutoexecBat
EndIf
Else
ModifyAutoexecBat Quietly
AddPathComponent [InstallationDirectory] at Beginning
EndModifyAutoexecBat
EndIf
;;-----------------
;; This part was a REAL Pain. If setgus can't find itself in the users
;; path statement it insists on placing itself at the end of the users
;; autoexec.bat instead of at the top. If this is the case this 60 lines
;; will move those lines installed by SETGUS to the top of the autoexec.
;;-----------------
[String3] := EnvironmentStringFor ULTRADIR
If [String3] = BlankString ;; Are his/her enviros already set?
ExamineTextFile [BootDrive]:\AUTOEXEC.BAT Quietly
[Number7] := LineNumberWith (SET,BLASTER,) ;; Move Blaster
[String8] := Line [Number7]
EndModifyTextFile
If [Number7] = 0
Else
ModifyAutoexecBat Quietly
DeleteLine [Number7]
InsertAtLine 2 [String8]
EndModifyAutoexecBat
EndIf
ExamineTextFile [BootDrive]:\AUTOEXEC.BAT Quietly
[Number7] := LineNumberWith (SET,ULTRADIR,) ;; Move UltraDIR
[String8] := Line [Number7]
EndModifyTextFile
If [Number7] = 0
Else
ModifyAutoexecBat Quietly
DeleteLine [Number7]
InsertAtLine 2 [String8]
EndModifyAutoexecBat
EndIf
ExamineTextFile [BootDrive]:\AUTOEXEC.BAT Quietly
[Number7] := LineNumberWith (CALL,SBOS,) ;; Move CALL SBOS
[String8] := Line [Number7]
EndModifyTextFile
If [Number7] = 0
Else
ModifyAutoexecBat Quietly
DeleteLine [Number7]
InsertAtLine 2 [String8]
EndModifyAutoexecBat
EndIf
ExamineTextFile [BootDrive]:\AUTOEXEC.BAT Quietly
[Number7] := LineNumberWith (ULTRINIT,EXE,) IncludeDisabled ;; Move UltraINIT
[String8] := Line [Number7]
EndModifyTextFile
If [Number7] = 0
Else
ModifyAutoexecBat Quietly
DeleteLine [Number7]
InsertAtLine 2 [String8]
EndModifyAutoexecBat
EndIf
ExamineTextFile [BootDrive]:\AUTOEXEC.BAT Quietly
[Number7] := LineNumberWith (SET,ULTRASND,) ;; Move ULTRASND
[String8] := Line [Number7]
EndModifyTextFile
If [Number7] = 0
Else
ModifyAutoexecBat Quietly
DeleteLine [Number7]
InsertAtLine 2 [String8]
EndModifyAutoexecBat
EndIf
EndIf
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 04/27/93
;; Purpose: Put Title Bars on the Screen
;;======================================
Procedure TitleScreen
SetTopLineAttrTo YellowOnRed
If [YesorNo6] = YesCharacter
SetTopLineTo " Gravis UltraSound (GUS) Installation - V2.06 "
Else
SetTopLineTo " Gravis UltraSound (GUS) Installation - V2.06L "
EndIf
TextBox WhiteOnRed @xy(Center,19)
.cUltraSound by
.cAdvanced Gravis Computer Technology Ltd.
.cBurnaby, BC, Canada
EndTextBox
SetBottomLineAttrTo WhiteOnRed
If [YesorNo2] = NoCharacter
SetBottomLineTo " CTRL+X=Exit "
Else
SetBottomLineTo " F1=Help F2=View ReadMe F3=System Summary CTRL+X=Exit "
EndIf
EndProcedure
;;======================================
;; Author: John Smith
;; Date: 05/05/93
;; Purpose: Throw up a dialog box welcoming user to Install
;;======================================
Procedure OpeningScreen
ClearScreen
SetTopLineAttrTo YellowOnRed
If [YesorNo6] = YesCharacter
SetTopLineTo " Gravis UltraSound (GUS) Installation - V2.06 "
Else
SetTopLineTo " Gravis UltraSound (GUS) Installation - V2.06L "
EndIf
TextBox WhiteOnRed @xy(7,4)
.cManufactured by
.cA d v a n c e d
" ▄▄▄ ▄▄▄▄ ▄▄▄ ▄▄ ▄▄ ▄ ▄▄▄▄ "
"▐ ▄▄ ▐ ▌ ▐█ █▌ ▐█ █▌ █ ▐▄▄▄▄ "
"▐ ▌▐▀█▀ ▐█ █▌ ▐█ █▌ █ ▌"
" ▀▀▀ ▀ ▀ ▀ ▀ ▀▀▀ ▀ ▀▀▀▀ "
.cBurnaby, BC, Canada
EndTextBox
TextBox WhiteOnRed @xy(42,15)
.cDesigned by
.cFORTE Technologies Inc.
.cRochester, NY, USA
EndTextBox
TextBox WhiteOnRed @xy(5,20)
________________________
EndTextBox
GoToXY @xy(7,21)
PressAnyKey
EndProcedure
EndScript